import { registerMicroApps, start } from 'qiankun';
import './shared/actions'
/**
 * name: 微应用名称 - 具有唯一性
 * entry: 微应用入口 - 通过该地址加载微应用
 * container: 微应用挂载节点 - 微应用加载完成后将挂载在该节点上
 * activeRule: 微应用触发的路由规则 - 触发路由规则后将加载该微应用
 */
registerMicroApps([
    {
        name: "VueMicroApp",
        entry: "//localhost:8082",
        container: "#frame",
        activeRule: "/vue"
    },
    {
        name: "ReactMicroApp",
        entry: "//localhost:8083",
        container: "#frame",
        activeRule: "/react"
    },
    {
        name: "UMIReactMicroApp",
        entry: "//localhost:8084",
        container: "#frame",
        activeRule: "/umi-react"
    },
]);

start();
